

//
//  BViewController.m
//  TabBar框架
//
//  Created by MyMac on 15/9/24.
//  Copyright (c) 2015年 tongfang. All rights reserved.
//

#import "BViewController.h"

@interface BViewController ()

@end

@implementation BViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    UIBarButtonItem*right=[[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(right)];
    self.navigationItem.rightBarButtonItem=right;
    self.view.backgroundColor=[UIColor greenColor];
    self.title=@"B";
    
}
-(void)right
{

    NSLog(@"h啊哈哈哈");

}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
